CHECK FOR UNDERSTANDING: Here are a few questions about coding without a loop versus with a loop!

A for loop is a type of loop that runs a set of commands for a number of times specified by range().

This program has two sprites that do the same thing but one of them uses a for loop.

  • Click Run to watch each robot draw a hexagon (a six sided shape).
  • Answer the questions by clicking on the correct answer. Then click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)